package com.uls.hj.mapper;

import java.util.List;
import java.util.Map;

import com.uls.hj.domain.HjBookings;

/**
 * 预订Mapper接口
 * 
 * @author hj
 * @date 2024-11-09
 */
public interface HjBookingsMapper 
{
    /**
     * 查询预订
     * 
     * @param bookingId 预订主键
     * @return 预订
     */
    public HjBookings selectHjBookingsByBookingId(Long bookingId);

    /**
     * 查询预订列表
     * 
     * @param hjBookings 预订
     * @return 预订集合
     */
    public List<HjBookings> selectHjBookingsList(HjBookings hjBookings);

    /**
     * 新增预订
     * 
     * @param hjBookings 预订
     * @return 结果
     */
    public int insertHjBookings(HjBookings hjBookings);

    /**
     * 修改预订
     * 
     * @param hjBookings 预订
     * @return 结果
     */
    public int updateHjBookings(HjBookings hjBookings);

    /**
     * 删除预订
     * 
     * @param bookingId 预订主键
     * @return 结果
     */
    public int deleteHjBookingsByBookingId(Long bookingId);

    /**
     * 批量删除预订
     * 
     * @param bookingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHjBookingsByBookingIds(Long[] bookingIds);

    /**
     * 假删
     * @param params
     * @return
     */
    public int updateHjBookingsByBookingId(Map<String,Object> params);

    /**
     * 批量假删
     * @param params
     * @return
     */
    public int updateHjBookingsByBookingIds(Map<String,Object> params);

    /**
     * 根据流程id和其他属性查询预约
     * @param booking
     * @return
     */
    public HjBookings selectBookingFlowIdOther(HjBookings booking);


}
